package com.exam.service;

import com.exam.po.ExamManage;
import com.exam.po.Score;
import com.exam.vo.ScoreVC;
import com.exam.po.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhanggaoxiang
 * @ClassName ScoreService
 * @Description TODO
 * @Date 2021/1/12 15:48
 * @Version 1.0
 **/
public interface ScoreService {

    List<Student> findScoreBySId(Integer page, Integer size);

    List<Score> findScore(Integer studentId);

    List<ExamManage> findExams(Integer page, Integer size);

    List<Score> findByExamCode(Integer examCode);

    Integer findStudentsCount();

    Integer findCount();
    /**
     * 管理员查询成绩
     * @param current
     * @param size
     * @return
     */
    List<ScoreVC> selectAdminBystudent(@Param("current") Integer current, @Param("size") Integer size);

    /**
     * 管理员查询成绩并审核
     * @param
     * @return
     */
    int updateAdminBySelective(Integer scoreid);
    /**
     * 查询总记录
     * @return
     */
    int countExample();

    /**
     * 查询score表的总记录
     * @return
     */
    int countScoreVC();

    /**
     * 查学生的总记录
     * @return
     */
    int countStudent();
}
